package com.gusto.engine.clusterant.rmi.impl;

import com.gusto.engine.clusterant.algorithms.antsclustering.Plan;
import com.gusto.engine.clusterant.algorithms.antsclustering.PlanObject;
import com.gusto.engine.clusterant.algorithms.antsclustering.impl.RandomAntsClusteringAlgorithm;
import com.gusto.engine.clusterant.rmi.AntsClusteringRMI;

public class AntsClusteringRMIImpl implements AntsClusteringRMI {
	
	private RandomAntsClusteringAlgorithm antsClusteringAlgorithm;
	
	public AntsClusteringRMIImpl(
			RandomAntsClusteringAlgorithm antsClusteringAlgorithm) {
		super();
		this.antsClusteringAlgorithm = antsClusteringAlgorithm;
	}
	
	public PlanObject getPlan() {
		Plan plan = antsClusteringAlgorithm.getPlan();
		PlanObject planObject = new PlanObject(plan.getRows(), plan.getCols(), plan.getPoints());
		return planObject;
	}
	
}
